package com.molichuxing.services.infrastructure.bean;

import java.time.LocalDateTime;

import com.molichuxing.framework.bean.RootBean;

public class FileStorageConfigBean extends RootBean {
	/**
	 * id
	 */
    private Integer id;

    /**
     * 文件归属文件夹 folder
     */
    private String folder;

    /**
     * 阿里云oss存储bucket oss_bucket
     */
    private String ossBucket;

    /**
     * 本地存储根路径 local_root_path
     */
    private String localRootPath;

    /**
     * url前缀 prefix_url
     */
    private String prefixUrl;

    /**
	 * 存储环境（1：公有，2：私有） storage_env
	 */
	private Integer storageEnv;

    /**
     * 创建时间 gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     * 更新时间 gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * basicdata_file_storage_config
     */
    private static final long serialVersionUID = 1L;

    /**
	 * 
	 * @date 2019-09-05 11:17:40
	 * @return id
	 */
	@Override
	public Integer getId() {
        return id;
    }

    /**
	 * 
	 * @date 2019-09-05 11:17:40
	 * @param id
	 */
	@Override
	public void setId(Integer id) {
        this.id = id;
    }

    /**
	 * 文件归属文件夹
	 * 
	 * @date 2019-09-05 11:17:40
	 * @return folder 文件归属文件夹
	 */
    public String getFolder() {
        return folder;
    }

    /**
	 * 文件归属文件夹
	 * 
	 * @date 2019-09-05 11:17:40
	 * @param folder
	 *            文件归属文件夹
	 */
    public void setFolder(String folder) {
        this.folder = folder == null ? null : folder.trim();
    }

    /**
	 * 阿里云oss存储bucket
	 * 
	 * @date 2019-09-05 11:17:40
	 * @return oss_bucket 阿里云oss存储bucket
	 */
    public String getOssBucket() {
        return ossBucket;
    }

    /**
	 * 阿里云oss存储bucket
	 * 
	 * @date 2019-09-05 11:17:40
	 * @param ossBucket
	 *            阿里云oss存储bucket
	 */
    public void setOssBucket(String ossBucket) {
        this.ossBucket = ossBucket == null ? null : ossBucket.trim();
    }

    /**
	 * 本地存储根路径
	 * 
	 * @date 2019-09-05 11:17:40
	 * @return local_root_path 本地存储根路径
	 */
    public String getLocalRootPath() {
        return localRootPath;
    }

    /**
	 * 本地存储根路径
	 * 
	 * @date 2019-09-05 11:17:40
	 * @param localRootPath
	 *            本地存储根路径
	 */
    public void setLocalRootPath(String localRootPath) {
        this.localRootPath = localRootPath == null ? null : localRootPath.trim();
    }

    /**
	 * url前缀
	 * 
	 * @date 2019-09-05 11:17:40
	 * @return prefix_url url前缀
	 */
    public String getPrefixUrl() {
        return prefixUrl;
    }

    /**
	 * url前缀
	 * 
	 * @date 2019-09-05 11:17:40
	 * @param prefixUrl
	 *            url前缀
	 */
    public void setPrefixUrl(String prefixUrl) {
        this.prefixUrl = prefixUrl == null ? null : prefixUrl.trim();
    }

    /**
	 * 存储环境（1：公有，2：私有）
	 * 
	 * @date 2019-09-05 11:17:40
	 * @return storage_env 存储环境（1：公有，2：私有）
	 */
	public Integer getStorageEnv() {
		return storageEnv;
    }

    /**
	 * 存储环境（1：公有，2：私有）
	 * 
	 * @date 2019-09-05 11:17:40
	 * @param storageEnv
	 *            存储环境（1：公有，2：私有）
	 */
	public void setStorageEnv(Integer storageEnv) {
		this.storageEnv = storageEnv;
    }

    /**
	 * 创建时间
	 * 
	 * @date 2019-09-05 11:17:40
	 * @return gmt_create 创建时间
	 */
	@Override
	public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    /**
	 * 创建时间
	 * 
	 * @date 2019-09-05 11:17:40
	 * @param gmtCreate
	 *            创建时间
	 */
	@Override
	public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
	 * 更新时间
	 * 
	 * @date 2019-09-05 11:17:40
	 * @return gmt_modified 更新时间
	 */
	@Override
	public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    /**
	 * 更新时间
	 * 
	 * @date 2019-09-05 11:17:40
	 * @param gmtModified
	 *            更新时间
	 */
	@Override
	public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FileStorageConfigBean other = (FileStorageConfigBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFolder() == null ? other.getFolder() == null : this.getFolder().equals(other.getFolder()))
            && (this.getOssBucket() == null ? other.getOssBucket() == null : this.getOssBucket().equals(other.getOssBucket()))
            && (this.getLocalRootPath() == null ? other.getLocalRootPath() == null : this.getLocalRootPath().equals(other.getLocalRootPath()))
            && (this.getPrefixUrl() == null ? other.getPrefixUrl() == null : this.getPrefixUrl().equals(other.getPrefixUrl()))
				&& (this.getStorageEnv() == null ? other.getStorageEnv() == null
						: this.getStorageEnv().equals(other.getStorageEnv()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFolder() == null) ? 0 : getFolder().hashCode());
        result = prime * result + ((getOssBucket() == null) ? 0 : getOssBucket().hashCode());
        result = prime * result + ((getLocalRootPath() == null) ? 0 : getLocalRootPath().hashCode());
        result = prime * result + ((getPrefixUrl() == null) ? 0 : getPrefixUrl().hashCode());
		result = prime * result + ((getStorageEnv() == null) ? 0 : getStorageEnv().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", folder=").append(folder);
        sb.append(", ossBucket=").append(ossBucket);
        sb.append(", localRootPath=").append(localRootPath);
        sb.append(", prefixUrl=").append(prefixUrl);
		sb.append(", storageEnv=").append(storageEnv);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}